package com.lh1010.s2.mapper;

import com.lh1010.s2.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ArticleMapper {

    // 根据ID查询一篇文章
    @Select("select * from luck_article where id = #{id}")
    public Article getArticle(Integer id);

}
